package com.wenhai.liuyubobobo.imooc.search;

/**
 * 并查集
 *
 * @author wenhai
 * @date   2021/3/29
 */
public interface UnionFind {
    int size();

    void union(int q, int p);

    boolean isConnected(int q, int p);
}
